<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> demo-Yucy调度器 </title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <link type="text/css" href="<?php echo YucyConfig::get('url.css');?>main.css?t=123" rel="stylesheet" />
 </head>

 <body>
 <div class="wrap">
 	<div class="row"><?php echo $message;?></div>
 	<div class="row">
 		<div class="title">Dispatcher模块介绍</div>
 		<div class="content">
 		Yucy::getApp()->setDispatcherName('name');可以指定需要使用的调度器;<br>
 		Yucy::getApp()->getDispatcher();获得当前的调度器对象，通过此对象可以获得模块名，控制器名，操作名<br>
 		Yucy::getApp()->getDispatcher()->getModuleName();<br>
 		Yucy::getApp()->getDispatcher()->setModuleName();<br>
 		Yucy::getApp()->getDispatcher()->getControllerName();<br>
 		Yucy::getApp()->getDispatcher()->setControllerName('name');<br>
 		Yucy::getApp()->getDispatcher()->getActionName();<br>
 		Yucy::getApp()->getDispatcher()->setActionName('name');<br>
 		此功能可以自由扩展，按规则写一个类放到Dispatcer下即可。
		</div>
 	</div>
 	<div class="row">
 		<div class="title">Helper模块介绍</div>
 		<div class="content">
 		通过Yucy::app()->getHelper()获得YucyHelper类的对象<br>
 		Yucy::getApp()->getHelper()->getDb();用get{你需要的功能块名}取得相应的对象
 		</div>
 	</div>
 	<div class="row">
 		<div class="title">Db助手介绍</div>
 		<div class="content">
 		$obj_db = Yucy::app()->getHelper()->getDb(YucyConfig::get('db_config'));<br>
		$obj_db->setTable('test')->setWhere($obj_db->where(), $obj_db->orWhere());<br>
		SELECT * FROM test WHERE a=b AND c=1 AND t=2 OR d=3;</div>
 	</div>
 	<div class="row">
 		<div class="title">试试另外一种方式</div>
 		<div class="content">
 		<a href="test.php">test一下</a>
 		</div>
 	</div>
 </div>
 </body>
</html>